package fr.afcepf.ai85.ent;

// Generated 21 mars 2013 17:20:56 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * JoursEncadrement generated by hbm2java
 */
@Entity
@Table(name = "jours_encadrement", catalog = "gepeto_db")
public class JoursEncadrement implements java.io.Serializable {

	private Integer idJoursEncadrement;
	private TypeActivite typeActivite;
	private AnneeScolaire anneeScolaire;
	private Encadrant encadrant;
	private Date dateEncadrement;

	public JoursEncadrement() {
	}

	public JoursEncadrement(TypeActivite typeActivite,
			AnneeScolaire anneeScolaire, Encadrant encadrant) {
		this.typeActivite = typeActivite;
		this.anneeScolaire = anneeScolaire;
		this.encadrant = encadrant;
	}

	public JoursEncadrement(TypeActivite typeActivite,
			AnneeScolaire anneeScolaire, Encadrant encadrant,
			Date dateEncadrement) {
		this.typeActivite = typeActivite;
		this.anneeScolaire = anneeScolaire;
		this.encadrant = encadrant;
		this.dateEncadrement = dateEncadrement;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_JOURS_ENCADREMENT", unique = true, nullable = false)
	public Integer getIdJoursEncadrement() {
		return this.idJoursEncadrement;
	}

	public void setIdJoursEncadrement(Integer idJoursEncadrement) {
		this.idJoursEncadrement = idJoursEncadrement;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ACTIVITE", nullable = false)
	public TypeActivite getTypeActivite() {
		return this.typeActivite;
	}

	public void setTypeActivite(TypeActivite typeActivite) {
		this.typeActivite = typeActivite;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ANNEESCOLAIRES", nullable = false)
	public AnneeScolaire getAnneeScolaire() {
		return this.anneeScolaire;
	}

	public void setAnneeScolaire(AnneeScolaire anneeScolaire) {
		this.anneeScolaire = anneeScolaire;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ENCADRANT", nullable = false)
	public Encadrant getEncadrant() {
		return this.encadrant;
	}

	public void setEncadrant(Encadrant encadrant) {
		this.encadrant = encadrant;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATE_ENCADREMENT", length = 10)
	public Date getDateEncadrement() {
		return this.dateEncadrement;
	}

	public void setDateEncadrement(Date dateEncadrement) {
		this.dateEncadrement = dateEncadrement;
	}

}
